package recommenRatings.domain;

import java.util.*;

import recommenRatings.data.JDBCOpinionDAO;

public class OpinionManager {

	private Collection<Opinion> opinions;

	public OpinionManager() {

		this.opinions = new ArrayList<Opinion>();

	}

	public void setOpinions(Collection<Opinion> opinions) {
		this.opinions = opinions;
	}

	public Collection<Opinion> getOpinions() {
		return opinions;
	}

	public void addOpinion(Opinion o, String username, Place p) {
		JDBCOpinionDAO jo=new JDBCOpinionDAO();
		jo.insert(o, username, p);
	}

	

}
